package io.geekidea.springbootplus.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.springbootplus.system.entity.SysOrder;
import io.geekidea.springbootplus.system.vo.SysOrderQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysOrderMapper extends BaseMapper<SysOrder> {
    //添加订单
    Integer insertOrder(SysOrder order);
    //根据用户id查找订单
    List<SysOrderQueryVo> selectOrderByMemberId(Integer memberId);
    //单个删除订单
    Integer deleteOrder(Long id);


}
